package org.dromara.common.core.domain.event

import java.io.Serial
import java.io.Serializable

/**
 * 流程任务监听
 *
 * @author may
 * @updater LikeYouDo
 */
data class ProcessTaskEvent(

    /**
     * 租户ID
     */
    var tenantId: String? = null,

    /**
     * 流程定义编码
     */
    var flowCode: String? = null,

    /**
     * 节点类型（0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关）
     */
    var nodeType: Int? = null,

    /**
     * 流程节点编码
     */
    var nodeCode: String? = null,

    /**
     * 流程节点名称
     */
    var nodeName: String? = null,

    /**
     * 任务id
     */
    var taskId: Long? = null,

    /**
     * 实例id
     */
    var instanceId: Long? = null,

    /**
     * 业务id
     */
    var businessId: String? = null,

    /**
     * 流程状态
     */
    var status: String? = null,

    /**
     * 办理参数
     */
    var params: MutableMap<String, Any?>? = null,

    ) : Serializable {
    companion object {
        @Serial
        private val serialVersionUID: Long = 1L
    }
}
